package com.tiancheng.trade.settlement.vo.settlement.admin;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * 招商银行清分对账汇总查询条件
 */
@Data
public class ClearCmbQueryVO {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    private String clearBatchNo;//清分批号
    private String mchId;//商户号
    private String payAcct;//付款方账号
    private String payAcctName;//付款方名称
    private String colAcct;//收款方账户号
    private String colAcctName;//收款方名称

    /**
     * 清分执行开始时间
     */
    private String clearDateBegin;

    /**
     * 清分执行结束时间
     */
    private String clearDateEnd;

    /**
     * 当前页
     */
    Integer currentPage;

    /**
     * 页大小
     */
    Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize || pageSize <= 0) {
            pageSize = 10;
        }
        return pageSize;
    }

    public String getClearBatchNo() {
        if (StringUtils.isNotEmpty(clearBatchNo)) {
            clearBatchNo = clearBatchNo.trim();
        }
        return clearBatchNo;
    }

    public String getMchId() {
        if (StringUtils.isNotEmpty(mchId)) {
            mchId = mchId.trim();
        }
        return mchId;
    }

    public String getPayAcct() {
        if (StringUtils.isNotEmpty(payAcct)) {
            payAcct = payAcct.trim();
        }
        return payAcct;
    }

    public String getPayAcctName() {
        if (StringUtils.isNotEmpty(payAcctName)) {
            payAcctName = payAcctName.trim();
        }
        return payAcctName;
    }

    public String getColAcct() {
        if (StringUtils.isNotEmpty(colAcct)) {
            colAcct = colAcct.trim();
        }
        return colAcct;
    }

    public String getColAcctName() {
        if (StringUtils.isNotEmpty(colAcctName)) {
            colAcctName = colAcctName.trim();
        }
        return colAcctName;
    }

}
